<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
<link href="lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>新增U_user_friend_setting</title>
</head>
<body>
<div class="pd-20">
	<form action="%=path%>/backstage/u_user_friend_setting-add" method="post" class="form form-horizontal" id="form-u_user_friend_setting-add">
		<input type="hidden" id="id" name="id" value='${u_user_friend_setting.id}' />
        
        <div class="row cl">
			<label class="form-label col-2">用户ID：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${u_user_friend_setting.user_id}" placeholder="" id="" name="user_id" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">是否要验证0否，1是，默认为1：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${u_user_friend_setting.is_open}" placeholder="" id="" name="is_open" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">类型 0自己的设置， 1针对好友的设置：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${u_user_friend_setting.type}" placeholder="" id="" name="type" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">是否置顶聊天 0不是；1是：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${u_user_friend_setting.is_top}" placeholder="" id="" name="is_top" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">是否消息免打扰  0不是；1是：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${u_user_friend_setting.is_nointerrupt}" placeholder="" id="" name="is_nointerrupt" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">是否自动忽视未读信息  0不是；1是：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${u_user_friend_setting.is_neglectnoread}" placeholder="" id="" name="is_neglectnoread" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">是否发送即阅即焚 0不是；1是：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${u_user_friend_setting.is_senddel}" placeholder="" id="" name="is_senddel" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">是否接收即阅即焚 0不是；1是：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${u_user_friend_setting.is_receivedel}" placeholder="" id="" name="is_receivedel" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        
		<div class="row cl">
			<div class="col-10 col-offset-2">
				<button onClick="u_user_friend_setting_save_submit();" class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 保存并提交</button>
				<button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
			</div>
		</div>
	</form>
</div>
</div>
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="lib/layer/2.1/layer.js"></script> 
<script type="text/javascript" src="lib/My97DatePicker/WdatePicker.js"></script> 
<script type="text/javascript" src="lib/icheck/jquery.icheck.min.js"></script> 
<script type="text/javascript" src="lib/Validform/5.3.2/Validform.min.js"></script> 
<script type="text/javascript" src="lib/webuploader/0.1.5/webuploader.min.js"></script> 
<script type="text/javascript" src="lib/ueditor/1.4.3/ueditor.config.js"></script>
<script type="text/javascript" src="lib/ueditor/1.4.3/ueditor.all.min.js"> </script>
<script type="text/javascript" src="lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="js/H-ui.js"></script> 
<script type="text/javascript" src="js/H-ui.admin.js"></script> 
<script type="text/javascript">

function u_user_friend_setting_save_submit(){
	$("#form-u_user_friend_setting-add").Validform({
		tiptype:2,
		ajaxPost:true,
		callback:function(form){
			var index = parent.layer.getFrameIndex(window.name);
			if (index){//关闭弹出层
				parent.$('.btn-refresh').click(); 
				parent.layer.close(index);
			}else{//单独的页面
				location.href = "%=path%>/backstage/u_user_friend_setting-list"; 
			}
		}
	});
}

</script>
</body>
</html>

